package com.sirui.x.learnBoot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sirui.x.learnBoot.entity.SignCredentialDO;
import com.sirui.x.learnBoot.service.SignCredentialService;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author kwen
 * @since 2023-05-03
 */
@RestController
@RequestMapping("/learnBoot/signCredentialDO")
public class SignCredentialController {


    @Autowired
    private SignCredentialService credentSvc;

    @GetMapping("test1")
    public String test(){
        SignCredentialDO credentialDO = new SignCredentialDO();
        credentialDO.setUname("test" + System.currentTimeMillis());
        credentialDO.setPwd("a");
        credentSvc.save(credentialDO);
        return String.valueOf(System.currentTimeMillis());
    }
}
